#include<iostream>
using namespace std;
typedef long long LL;
const int N = 1e5 + 10;
int n;
LL arr[N], k;
int main()
{
	cin >> n >> k;
	LL ans = 1ll * (1 + n) * n;
	ans /= 2;
	if (ans > k) {
		cout << -1 << endl;
		return 0;
	}
	ans = 0;
	for (int i = 1; i <= n - 1; i++) {
		ans += i;
		cout << i << " ";
	}
	LL ans1 = k - ans + n;
	cout << ans1 << endl;
	return 0;
}